import request from '@/utils/request'
//门店订单列表
export function selectOrderList(data) {
    return request({
        url: '/smkapi/order/selectOrderList',
        method: 'post',
        data
    })
}
//门店订单详情
export function findOrderInfo(data) {
    return request({
        url: '/smkapi/order/findOrderInfo',
        method: 'post',
        data
    })
}

export function selectErpOrgGoodsList(data) {
    return request({
        url: '/smkapi/order/selectErpOrgGoodsList',
        method: 'post',
        data
    })
}
//编辑门店订单详情
export function editOrderInfo(data) {
    return request({
        url: '/smkapi/order/editOrderInfo',
        method: 'post',
        data
    })
}
//门店订单确认发货
export function confirmOrder(data) {
    return request({
        url: '/smkapi/order/confirmOrder',
        method: 'post',
        data
    })
}
//机构
export function selectOrgData(data) {
    return request({
        url: '/smkapi/org/selectOrgData',
        method: 'post',
        data
    })
}
//拉取
export function pullOrderData(data) {
    return request({
        url: '/smkapi/order/pullOrderData',
        method: 'post',
        data
    })
}
//获取机构
export function selectSmkOrgJGData(data) {
    return request({
        url: '/smkapi/org/selectSmkOrgJGData',
        method: 'post',
        data
    })
}
//获取商品
export function selectErpGoodsData(data) {
    return request({
        url: '/smkapi/goods/selectErpGoodsData',
        method: 'post',
        data
    })
}
//获取供应商
export function getSupplierByBindGoods(data) {
    return request({
        url: '/smkapi/supplier/getSupplierByBindGoods',
        method: 'post',
        data
    })
}
//获取供应商
export function addOrderInfo(data) {
    return request({
        url: '/smkapi/order/addOrderInfo',
        method: 'post',
        data
    })
}
//查询订单审核操作
export function getBillOperationData(data) {
    return request({
        url: '/smkapi/Operation/getBillOperationData',
        method: 'post',
        data
    })
}
//批次
export function getUnAvgBatch(data) {
    return request({
        url: '/smkapi/goods/getUnAvgBatch',
        method: 'post',
        data
    })
}

export function selectErpOrderGoodsData(data) {
    return request({
        url: '/smkapi/goods/selectErpOrderGoodsData',
        method: 'post',
        data
    })
}
export function selectErpOrderGoodsDataNew(data) {
    return request({
        url: '/smkapi/goods/selectErpOrderGoodsDataNew',
        method: 'post',
        data
    })
}
//同步列表
export function synchroStockByOld(data) {
    return request({
        url: '/smkapi/order/synchroStockByOld',
        method: 'post',
        data
    })
}
//添加行采订单
export function addHangCaiOrderInfo(data) {
    return request({
        url: '/smkapi/order/addHangCaiOrderInfo',
        method: 'post',
        data
    })
}
//修改行采订单
export function editHangCaiOrderInfo(data) {
    return request({
        url: '/smkapi/order/editHangCaiOrderInfo',
        method: 'post',
        data
    })
}
//行采确认发货
export function confirmHangCaiOrder(data) {
    return request({
        url: '/smkapi/order/confirmHangCaiOrder',
        method: 'post',
        data
    })
}
//一品多店添加
export function createOrderByMultiStore(data) {
    return request({
        url: '/smkapi/order/createOrderByMultiStore',
        method: 'post',
        data
    })
}

//删除
export function deleteOrder(data) {
    return request({
        url: '/smkapi/order/deleteOrder',
        method: 'post',
        data
    })
}
//获取来源
export function getSourceData(data) {
    return request({
        url: '/smkapi/option/getSourceData',
        method: 'post',
        data
    })
}
//获取来源
export function createOrderByMultiStoreNoSend(data) {
    return request({
        url: 'smkapi/order/createOrderByMultiStoreNoSend',
        method: 'post',
        data
    })
}
//商超商品获取到店价接口
export function getFixedPrice(data) {
    return request({
        url: 'smkapi/goods/getFixedPrice',
        method: 'post',
        data
    })
}
//商超商品获取到店价接口
export function getPackageBoxData(data) {
    return request({
        url: 'smkapi/Packagebox/getPackageBoxData',
        method: 'post',
        data
    })
}